package com.vhall.component.controller.interactive.facade;


import com.vhall.component.entity.interactive.vo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author shenqing
 * @date 2021/6/9 17:14
 */
@FeignClient(value = "DocumentFacade", path = "/v4/document")
public interface DocumentFacade {
    /**
     * 上传文档
     * http://chandao.ops.vhall.com:3000/project/465/interface/api/30559
     *
     * @param reqVO
     * @return
     */
    @PostMapping("/upload")
    DocumentUploadRsp upload(@Validated DocumentUploadReqVO reqVO);

    /**
     * 获取文档列表
     * http://chandao.ops.vhall.com:3000/project/465/interface/api/30567
     *
     * @param reqVO
     * @return
     */
    @GetMapping("/lists")
    DocumentListRspVO list(@Validated DocumentListReqVO reqVO);

    /**
     * 删除文档
     * http://chandao.ops.vhall.com:3000/project/465/interface/api/30583
     *
     * @param reqVO
     * @return
     */
    @PostMapping("/delete")
    Boolean delete(@Validated DocumentDeleteReqVO reqVO);

}
